package com.distribute.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.codingapi.tx.annotation.TxTransaction;
import com.distribute.dao.TOrderMapper;
import com.distribute.entity.TOrder;
import com.distribute.entity.TOrderExample;
import com.distribute.service.PortalService;

@Service
public class PortalServiceImpl implements PortalService {

	@Autowired
	private TOrderMapper orderMapper;
	
	@Override
	public int insert(TOrder record) {
		// TODO Auto-generated method stub
		return 0;
	}

    // 分布式事务测试
    @Override
    @TxTransaction(isStart = true)
    @Transactional
	public int insertSelective(TOrder record) {
		
		int count = orderMapper.insertSelective(record);
		return count;
	}

	@Override
	public List<TOrder> selectByExample(TOrderExample example) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
}
